//
//  CoffeeJX.m
//  Fragrance
//
//  Created by yinzhongyuan on 15/5/25.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "CoffeeJX.h"

@implementation CoffeeJX

//+(NSMutableArray *)getCoffeeModel:(NSData *)data
//{
//    NSMutableArray *arrCoffee = [NSMutableArray array];
//    NSError *error = nil;
//    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
//    
//    NSDictionary *dic1 = [dic objectForKey:@"value"];
//    NSArray *array = [dic1 objectForKey:@"articlelist"];
//    for (NSDictionary *dic2 in array) {
//        CoffeeModel *model = [CoffeeModel getCoffeeModel];
//        model.title = [dic2 objectForKey:@"title"];
//        model.culture = [dic2 objectForKey:@"summary"];
//        model.createUser = [dic2 objectForKey:@"create_user"];
//        model.updateUser = [dic2 objectForKey:@"last_update_user"];
//        model.pic = [dic2 objectForKey:@"image_url"];
//        [arrCoffee addObject:model];
//    }
//    return arrCoffee;
//}

@end
